﻿<html>
<head>
<title>标题栏</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> 
<link rel="stylesheet" type="text/css" href="/static/style.css">
<link rel="stylesheet" type="text/css" href="topbar.css">
<script type="text/javascript" src="/static/js/jquery-1.4.min.js" ></script>
<script type="text/javascript" src="/static/js/front/jQuery/jquery.timers-1.2.js" ></script>
<script language="JavaScript">
window.setInterval("window.location.reload()", 4*3600*1000);
var OA_TIME = new Date();
function timeview()
{
  timestr=OA_TIME.toLocaleString();
  timestr=timestr.substr(timestr.indexOf(":")-2);
  document.getElementById("time_area").innerHTML = timestr;
  OA_TIME.setSeconds(OA_TIME.getSeconds()+1);
  window.setTimeout( "timeview()", 1000 );
}
 //$(document).ready(function(){
//    $('body').everyTime('300s','D',function(){ //5分钟执行一次
//       //到后端获取ukey信息
//       $.ajax( {
//        url: "/cx/validclient/",
//        data: { },
//        //成功
//        success: function( json ) {
//            //alert(json=="false");
//            if (json == "false" ) {
//                //alert("获取不到ukey信息");
//                //external.killclient(false);
//            }
//            
//        },
//        //失败
//        error: function( ){
//            alert("获取ukey信息出错!");
//            //也关闭
//        }
//        } );
//    });
 //});
</script>
</head>

<body topmargin="0" leftmargin="0" STYLE="margin:0pt;padding:0pt" onLoad="timeview();">

<table class="topbar" height=50 width="100%" border=0 cellspacing=0 cellpadding=0>
  <tr height=40>
    <td><div style="margin-left:10px; float:left;width:446px; height:33px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='product.png',sizingMethod='image');"></div></td>
    <td valign="top">
      <div id="time"><span class="time_left"><span class="time_right">
 <span id='date' title='{{ today.strftime( "%Y-%m-%d" ) }}'>{{ today.strftime( "%Y-%m-%d" ) }}</span> <b>week{{ '1234567'[ today.weekday() ] }}</b>
 <img src="/static/images/time.gif" align="absmiddle">
        <span id="time_area"></span>&nbsp;
      </span></span>
      </div>
      <div id="weather" title=""></div>
    </td>
  </tr>
</table>
</body>
</html>
